package com.duobaoyu.dby.supply.biz.event;


import lombok.*;
import org.springframework.context.ApplicationEvent;

import java.io.Serializable;
import java.util.List;

@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public class SalesVolumeStatistics extends ApplicationEvent {
	private static final long serialVersionUID = -6658290734130322536L;
	/**
	 * 订单销量统计
	 */
	private List<OrderSalesVolumeStatistics> orderSalesVolumeStatisticsList;

	public SalesVolumeStatistics(List<OrderSalesVolumeStatistics> orderSalesVolumeStatisticsList){
		super(orderSalesVolumeStatisticsList);
		this.orderSalesVolumeStatisticsList = orderSalesVolumeStatisticsList;
	}

	@Data
	@NoArgsConstructor
	public static class OrderSalesVolumeStatistics implements Serializable{
		private static final long serialVersionUID = 2542263599694691807L;
		/**
		 * 编码
		 */
		private String skuCode;

		/**
		 * 订单量
		 */
		private Integer orderNum;

		/**
		 * 退单量
		 */
		private Integer backOrderNum;

		/**
		 * 订单编号
		 */
		private String orderSn;
	}
}
